{% extends "admin.html"%}

{% block head %}
<script language="javascript" type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
<script language="javascript" type="text/javascript" src="/js/thickbox.js"></script>
<script language="javascript" type="text/javascript" src="/js/tiny_mce.js"></script>
<script language="javascript" type="text/javascript" src="/js/tinymce-config.js"></script>
<script language="javascript" type="text/javascript" src="/js/jquery.form.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="/static/css/thickbox.css" />
{% endblock %}

{% block contentextra %}
	{% if admin %}
		<div class=''>
			<form action="/admin/?a=add&t=question" method='post'>
				<table>
					{{question_form}}
					<tr>
						<td>&nbsp;</td>
						<td><input type='submit' value='Create Question' /></td>
					</tr>
				</table>
			</form>
		</div>
	{% else %}
		<div class="">
			<div class="">{{ question.q }}</div>
			<p>{{ question.a }}</p>
		</div>
	{% endif %}
{% endblock %}